#include "Math.h"

const double Math::PI = 3.1415926535897932384626433832795;
const double Math::EPSILON = 0.00001;

bool Math::isRealEqual( Real a, Real b ,Real tolerance /*= std::numeric_limits< Real >::epsilon()*/ )
{
	if(a - b > - tolerance && a - b < tolerance)
		return true;
	else
		return false;
}

Real Math::abs( Real x )
{
	return ::abs(x);
	//return (x>0)?x:-x;
}